package com.mybatis.controller;

import com.mybatis.service.TFileService;
import com.mybatis.utils.RedisUtils;
import com.mybatis.utils.ResultUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by 2756779610@qq.com on 2021/12/13 11:12
 * CHANGE ACTIVITY:
 * <p>
 * Reason      Version    Date        User        Description
 * ------------ ---------- ----------- ----------- -------------------
 * <p>
 * END CHANGE ACTIVITY
 */
@Api(tags = "文件接口")
@RestController
public class TFileController {
    @Autowired
    private TFileService tFileService;
    @Autowired
    private RedisUtils redisUtils;
    @ApiOperation("查询文件")
    @GetMapping("/queryFile")
    public ResultUtils queryFile(String name){
        return tFileService.findAllByFileName(name);
    }
}
